package com.hotel.config.qiniu;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "qiniu") // 自动匹配配置文件中前缀名为"qiniu"的属性
public class QiniuYunConfig {
    private  String accessKey;
    private  String secretKey;
    private  String bucket;
}
